#ifndef MyWindow_H
#define MyWindow_H

#include <QWidget>

#include "KevinListModel.h"

class QQuickWidget;
class QQuickItem;
class QPushButton;

class MyWindow : public QWidget {
    Q_OBJECT;

public:
    MyWindow(QWidget* parent = nullptr);
    ~MyWindow();

signals:
    /**
     * @brief change Index
     */
    int changeIndex(int index);

public slots:

    /**
     * @brief actionDialog
     */

    int actionDialog(QString type);

    /**
     * @brief add widget
     */
    void build();

    /**
     * @brief build Rect view
     *
     * @return int
     */
    int buildRect();

    /**
     * @brief add QuickWidget
     */
    int bodyOpen();

    /**
     * @brief view Close
     *
     */
    int bodyClose();

private:
    void resizeEvent(QResizeEvent* event);

private:
    QQuickWidget*    m_headerQuick;
    QQuickWidget*    m_bodyQuick;
    QPushButton*     m_pBtnResize;
    Kevin::ListModel m_model;
    bool             m_zoomIn;
    int              m_top;
};
#endif // MyWindow_H
